var sdui={bufferwid:3.0,wkt:"LINESTRING (-20.3764 -18.3506, -75.36948 -18.34094,"
		+" -80.36277 -18.33377, -85.35619 -18.32807, -90.34925 -18.32336, -95.34269"
		+" -18.31949, -100.33627 -18.31624, -105.32741 -18.3125, -110.32558 -18.31201,"
		+" -116.3764 -18.3506 )"};
function main() {
	let scale=255.0/4000 ;
	let ds=pe.Dataset('modis/mod09cmg', 20230901000000);
	let ds1 = ds.forEachPixel( function(v,i) {
		r=v[0];//modis band1 for red
		g=v[3];//modis band4 for green
		b=v[2];//modis band3 for blue
		if( r>0 ) {
			r=r*scale;
			g=g*scale;
			b=b*scale;
		}else{
			r=g=b=0;
		}
		return [r,g,b] ;
	}) ;
	let geomLine=pe.geomByWkt( sdui.wkt ).buffer( parseFloat(sdui.bufferwid) );//buffer width unit in degree.
	ds1=ds1.clipByGeometry(geomLine,0) ;

	return ds1;
}